package com.sqllog.admin.sql.datasource;


import com.sqllog.admin.sql.domain.DatasourceMemoryInfo;
import com.sqllog.admin.sql.domain.QueryParamInfo;
import com.sqllog.admin.sql.domain.ReturnDataInfo;
import com.sqllog.admin.sql.domain.SqlLogInfo;
import com.sqllog.admin.utils.SpringContextUtils;
import org.springframework.jdbc.core.JdbcTemplate;

import java.util.List;

/**
 * TODO
 *
 * @author chennengcheng
 * @date 2022-01-05 14:39
 * @remark
 */
public class MySqlDbSaveDataSourceOption implements LogSaveDataSourceOption {
    private final JdbcTemplate jdbcTemplate = SpringContextUtils.getBean(JdbcTemplate.class);

    @Override
    public void createTable(String dataBaseName, String tableName, String month) {
    }

    @Override
    public boolean checkExistsTableName(String dataBaseName, String tableName, String month) {
        return false;
    }

    @Override
    public void deleteTable(String dataBaseName, String tableName, String month) {

    }

    @Override
    public void createTableIndex(String dataBaseName, String tableName, String month, String indexName) {

    }

    @Override
    public int insert(String dataBaseName, String tableName, String month, List<SqlLogInfo> sqlLogInfos) {
        return 0;
    }

    @Override
    public List<ReturnDataInfo> list(QueryParamInfo queryParamInfo) {
        return null;
    }

    @Override
    public long countRecordNum(QueryParamInfo queryParamInfo) {
        return 0;
    }

    @Override
    public ReturnDataInfo getById(QueryParamInfo queryParamInfo) {
        return null;
    }

    @Override
    public DatasourceMemoryInfo getDatasourceMemoryUsed() {
        return null;
    }
}
